//
//  CityAddressCell.m
//  zjGovernment
//
//  Created by 胡胜冬 on 2017/2/18.
//  Copyright © 2017年 胡胜冬. All rights reserved.
//

#import "CityAddressCell.h"
#define font14 (14 * APP_PARAMETER)

@interface CityAddressCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIView *bottomLineView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *labelToLead;

@end

@implementation CityAddressCell

- (void)setTitleString:(NSString *)titleString {
    _titleString = titleString;
    self.titleLabel.text = titleString;
}

- (void)setTitleColor:(UIColor *)titleColor {
    _titleColor = titleColor;
    self.titleLabel.textColor = titleColor;
}

- (void)resetLayout {
    self.labelToLead.constant = 20 * APP_PARAMETER;
}

- (void)reSetViews {
    self.titleLabel.textColor = [UIColor colorWithHexString:@"333333"];
    self.titleLabel.font = [UIFont systemFontOfSize:font14];
    self.bottomLineView.backgroundColor = [UIColor colorWithHexString:@"e7e7e7"];
}

- (void)setHiddenBottomLine:(BOOL)hiddenBottomLine {
    _hiddenBottomLine = hiddenBottomLine;
    self.bottomLineView.hidden = hiddenBottomLine;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self resetLayout];
    [self reSetViews];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
